package com.ssm.util;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    @org.junit.Test
    public void test(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
        Car nissan= (Car) applicationContext.getBean("nissan");
        nissan.introduce();
    }
}
